package com.sky.com.admin.controller;

import com.sky.feignapi.clients.MerchantClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/merchant")
@Slf4j
public class MerchantController {
    @Autowired
    private MerchantClient merchantClient;//注入feign客户端，用于调用方法
   @GetMapping("/third/method/{str}")
    public void method(@PathVariable String str){
   //调用方法
        merchantClient.method(str);
        log.info(str);
    }
}
